<template>
	<div class="page result">
		<div class="scroll-view">
			<customHeader :middleTitle="header" @leftCallBack="complete"  rightTitle="完成"/>
			<div class="page-body">
				<result type="fail" title="提交失败"  />
				<div class="btnBox">
					<mt-button class="btn" type="primary"  @click="complete">返回</mt-button>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
import Vue from "vue";
import customHeader from "../../components/header/header";
import result from "../../components/result/result";
export default {
  name: "editStoreFail",
  data() {
    return {
      header: "新增门店",
    };
  },
  methods: {
    complete() {
      this.$router.push({ path: "/storeManage",query: CommonUtil.concatSessionId({}) });
    }
  },
  created: function() {
    var query = this.$route.query;
    var shopId = query.shopId;
    if(shopId && shopId>0){
      this.header = '编辑门店';
    }
  },
  components: {
    customHeader,
    result
  }
};
</script>
